-- GENERATED SPELL FOR [Unbound Firestorm] --


function spell0_28584(pUnit, Event) --@Afterburn,Self--
pUnit:FullCastSpellOnTarget(52624,pUnit)
pUnit:RegisterEvent('Sorts_28584', 12500, 1)
end

function spell1_28584(pUnit, Event) --@Afterburn,Self--
pUnit:FullCastSpellOnTarget(59183,pUnit)
pUnit:RegisterEvent('Sorts_28584', 12000, 1)
end

function spell2_28584(pUnit, Event) --@Lava Burst,n/a--
pUnit:FullCastSpellOnTarget(53788,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28584', 2000, 1)
end

function spell3_28584(pUnit, Event) --@Lava Burst,n/a--
pUnit:FullCastSpellOnTarget(59182,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28584', 1000, 1)
end

function Sorts_28584(pUnit, Event)
local choix_sorts_28584 = math.random(0, 3)
if choix_sorts_28584 == 0 then
pUnit:RegisterEvent('spell0_28584', 1, 1)
end
if choix_sorts_28584 == 1 then
pUnit:RegisterEvent('spell1_28584', 1, 1)
end
if choix_sorts_28584 == 2 then
pUnit:RegisterEvent('spell2_28584', 1, 1)
end
if choix_sorts_28584 == 3 then
pUnit:RegisterEvent('spell3_28584', 1, 1)
end
end

function mob28584_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28584', math.random(1500, 3000), 1)
end

function mob28584_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28584_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28584_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28584, 1, 'mob28584_Action')
RegisterUnitEvent(28584, 2, 'mob28584_Leave')
RegisterUnitEvent(28584, 3, 'mob28584_Kill')
RegisterUnitEvent(28584, 4, 'mob28584_Die')
